const WSClient = require('./ws-client');

const wsClient = new WSClient('ws://localhost:9802/mcp/ws');

wsClient.setOnOpen(() => {
    wsClient.send({
        action: 'listTools',
        payload: {}
    })
})

wsClient.setOnMessage((msg) => {
    console.log('服务端消息', msg)
})

// wsClient.send({
//     action: 'chat',
//     payload: {
//         prompt: '查询章若楠用户信息'
//     }
// })